import request from '@/utils/request'

// 获取页面详情折线图
export function queryCapitalDataList(params) {
  return request({
    url: '/admin/capital/dataList',
    method: 'post',
    data: params,
  })
}

// 查询用户信息饼图
export function queryCapitalCustomerInfo(params) {
  return request({
    url: '/admin/capital/customerInfo',
    method: 'post',
    data: params,
  })
}

// 查询页面排行
export function queryCapitalPageSort(params) {
  return request({
    url: '/admin/capital/pageSort?pageNum=' + params.pageNum + '&pageSize=' + params.pageSize,
    method: 'post',
    data: params,
  })
}

// 查询页面详情
export function queryCapitalPageDetail(params) {
  return request({
    url: '/admin/capital/pageDetail?pageNum=' + params.pageNum + '&pageSize=' + params.pageSize,
    method: 'post',
    data: params,
  })
}

// 获取平台和来源枚举值
export function getCapitalSource(params) {
  return request({
    url: '/admin/capital/source',
    method: 'get',
    query: params,
  })
}

// 获取用户详情
export function queryCapitalCustomerDetail(params) {
  return request({
    url: '/admin/capital/customerDetail?pageNum=' + params.pageNum + '&pageSize=' + params.pageSize,
    method: 'post',
    data: params,
  })
}

// 获取总数
export function getCapitalTotalCustomer(params) {
  return request({
    url: '/admin/capital/totalCustomer',
    method: 'get',
    query: params,
  })
}

export function addIocLead(params) {
  return request({
    url: '/admin/capital/iocLead?pageNum=' + params.pageNum + '&pageSize=' + params.pageSize,
    method: 'post',
    data: params,
  })
}
